/* ==========================================
   LOGIN PAGE STYLES
   ========================================== */

:root {
  --primary: #ffb6c1;
  --accent: #e75480;
  --bg: #fff5f7;
  --text: #333;
  --card-radius: 15px;
  --gradient-bg: linear-gradient(135deg, #ffd1dc 0%, #ffb6d9 50%, #ff85c0 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffe6f5 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==========================================
   NAVBAR - Matching Home Page
   ========================================== */
nav {
  background: linear-gradient(135deg, var(--primary) 0%, #ffc9d4 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
}

nav .logo img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

nav ul li a {
  color: white;
  font-weight: 600;
  transition: all 0.3s;
  padding: 8px 15px;
  border-radius: 20px;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* ==========================================
   LOGIN CONTAINER
   ========================================== */
.login-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.login-container {
  max-width: 480px;
  width: 100%;
  background: white;
  border-radius: 30px;
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(231, 84, 128, 0.3);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 182, 217, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.login-header h1 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #8e7089;
  font-size: 0.95rem;
}

/* ==========================================
   TABS
   ========================================== */
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg);
  padding: 0.5rem;
  border-radius: 20px;
}

.tab {
  flex: 1;
  padding: 0.8rem;
  text-align: center;
  border-radius: 15px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  color: var(--text);
}

.tab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.3);
  transform: scale(1.02);
}

.tab:not(.active):hover {
  background: #ffe6f0;
  transform: translateY(-2px);
}

/* ==========================================
   FORM STYLES
   ========================================== */
.form-content {
  display: none;
}

.form-content.active {
  display: block;
  animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
}

.input-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c084bd;
  font-size: 1.1rem;
}

input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid #ffd1dc;
  border-radius: 15px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
  background: var(--bg);
  font-family: 'Poppins', sans-serif;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(231, 84, 128, 0.2);
  transform: translateY(-2px);
  background: white;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #c084bd;
  transition: color 0.3s;
  z-index: 10;
}

.password-toggle:hover {
  color: var(--accent);
}

.forgot-password {
  text-align: right;
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
}

.forgot-password a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
}

.forgot-password a:hover {
  text-decoration: underline;
}

button[type="submit"] {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  box-shadow: 0 5px 15px rgba(231, 84, 128, 0.3);
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
}

button[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231, 84, 128, 0.4);
}

button[type="submit"]:active {
  transform: translateY(-1px);
}

/* ==========================================
   DIVIDER
   ========================================== */
.divider {
  display: flex;
  align-items: center;
  margin: 2rem 0;
  color: #8e7089;
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ffd1dc;
}

.divider span {
  padding: 0 1rem;
}

/* ==========================================
   SOCIAL LOGIN
   ========================================== */
.social-login {
  display: flex;
  gap: 1rem;
}

.social-btn {
  flex: 1;
  padding: 0.9rem;
  border: 2px solid #ffd1dc;
  border-radius: 15px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

.social-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 84, 128, 0.2);
}

.social-btn i {
  font-size: 1.3rem;
}

.social-btn.google i {
  color: #DB4437;
}

.social-btn.facebook i {
  color: #1877F2;
}

/* ==========================================
   ENHANCED FOOTER
   ========================================== */
.main-footer {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #ddd;
  padding: 3rem 2rem 0;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #444;
}

.footer-section h3 {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section p {
  color: #bbb;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1rem;
}

.footer-logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

.footer-logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #cfcfcf;
  font-size: 0.95rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-section ul li a i {
  color: var(--primary);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(231, 84, 128, 0.4);
}

/* Newsletter */
.newsletter {
  margin-top: 1.5rem;
}

.newsletter h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.8rem;
  border: 2px solid #444;
  border-radius: 25px;
  background: #2c2c2c;
  color: white;
  outline: none;
  transition: all 0.3s;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  padding: 0.8rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  border-radius: 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.newsletter-form button:hover {
  transform: scale(1.05);
}

/* Footer Bottom */
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: #bbb;
  font-size: 0.9rem;
}

.footer-bottom .fa-heart {
  color: var(--accent);
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 1.5rem;
  color: #777;
}
/* ==========================================
   SUCCESS & ERROR MESSAGES
   ========================================== */
.success-message {
  display: none;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  color: white;
  padding: 1rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  animation: slideDown 0.4s ease-out;
}

.success-message.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error-message {
  display: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  padding: 1rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  animation: shake 0.5s ease-out;
}

.error-message.show {
  display: block;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  nav ul {
    gap: 10px;
  }

  nav ul li a {
    padding: 5px 10px;
    font-size: 0.9rem;
  }

  .login-container {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .login-header h1 {
    font-size: 2rem;
  }

  .social-login {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  nav {
    flex-direction: column;
    gap: 15px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .login-wrapper {
    padding: 2rem 1rem;
  }
}
